<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta charset="utf-8">
    <title>基本资料</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/layui/css/public.css" media="all">
    <style>
        .layui-form-item .layui-input-company {width: auto;padding-right: 10px;line-height: 38px;}
    </style>
</head>
<body>
<div class="layuimini-container" method="post">
    <div class="layuimini-main">
<c:forEach items="${adminAll}" var="admin">
    <input type="text" name="id" style="display: none"  value="${admin.id}" class="layui-input">
        <div class="layui-form layuimini-form">
            <div class="layui-form-item">
                <label class="layui-form-label required">管理账号</label>
                <div class="layui-input-block">
                    <input type="text" disabled="disabled"  name="username" lay-verify="required"  value="${admin.loginname}" placeholder="请输入管理账号" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label required">密码</label>
                <div class="layui-input-block">
                    <input type="text" name="password"  disabled="disabled"  lay-verify="required" lay-reqtext="密码不能为空"  value="${admin.password}" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">备注信息</label>
                <div class="layui-input-block">
                    <input  disabled="disabled"  value="${admin.other}"  class="layui-textarea"></input>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn layui-btn-normal"><a href="/adminfindbyid.do?id=${admin.id}" >修改</a></button>
					<button class="layui-btn layui-btn-normal" onclick="excitSession()">退出</button>
                </div>
            </div>
        </div>
    </div>
</div>
</c:forEach>
<script src="/layui/js/layui.js" charset="utf-8"></script>
<script type="text/javascript">
    //定义按钮跳出frameset框架
    function excitSession(){
        window.top.location = "/layui/login.jsp";

    }


    // if(window.top != window.self){
    //   window.top.location = "/layui/login.jsp";
    // }

</script>
</body>
</html>
